<%@ page language="java" pageEncoding="utf-8"%>
<%@ page language="java" import="java.util.*"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<s:bean var="user_comment_admin" name="com.prp.struts.bean.UserAuth">
	<s:param name="username" value="#session.username"/>
</s:bean>
	
<div class="comment">
	<div class="title">
		<b><s:text name="_LastedComment"/></b>
	</div>
	<ul>
	<s:iterator value="commentList" status="stat">
		<li>
			<span class="poster">
				<span class="name"><s:property value="userinfo.username"/></span>
				&nbsp;@&nbsp;<s:date name="date" format="yyyy-MM-dd HH:mm:ss"/>&nbsp;&nbsp;<s:text name="_Says"/>：&nbsp;&nbsp;
				<!-- 
				<s:if test="#user_comment_admin.is_FileAdmin">
				<a class="delComm" data_cid="<s:property value='id'/>" style="color:red" href="javascript:void(0)">[<s:text name="_Delete"/>]</a>
				</s:if>
				 -->
			</span>
		<p class="content"><s:property value="comment"/></p>
		
		<p></p>
		</li>
	</s:iterator>
	</ul>
	
	<div class="my_comment">
		<s:if test="#session.username==null">
			<p><s:text name="_CommNeed"/>
			<a href="user/loginPage.action"><s:text name="_Login"/></a>
			</p>
			<div style="height:40px"></div>
		</s:if>
		<s:else>
		<b><s:text name="_Comment"/>：</b>
		<s:text name="_CommWel"/>
		<span style="color:red"><s:text name="_CommLaw"/></span>
		<s:form action="commitComm" namespace="/file" method="post">
		
			<s:hidden name="itemID" ></s:hidden>
			
			<s:textarea name="comm.comment" cols="80" rows="6"></s:textarea>
			<br/>
			<div style="height:18px"></div>
			<s:submit value="%{getText('_prsubmit')}"></s:submit>
		</s:form>
		</s:else>
	</div>
</div>	